<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/program_ico.ico">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"dreamanone.gitee.io","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="前言首先，参考本教程前，您需要安装如下软件并默认您拥有Gitee账号。 软件地址1.Node.js 2.Git 3.Typora 4.Nodepad++">
<meta property="og:type" content="article">
<meta property="og:title" content="Hexo博客免费搭建教程">
<meta property="og:url" content="https://dreamanone.gitee.io/2021/04/05/Hexo%E5%8D%9A%E5%AE%A2%E5%85%8D%E8%B4%B9%E6%90%AD%E5%BB%BA%E6%95%99%E7%A8%8B/index.html">
<meta property="og:site_name" content="江麟の个人博客">
<meta property="og:description" content="前言首先，参考本教程前，您需要安装如下软件并默认您拥有Gitee账号。 软件地址1.Node.js 2.Git 3.Typora 4.Nodepad++">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://riyugo.com/i/2021/04/06/p2c82n.png">
<meta property="og:image" content="https://riyugo.com/i/2021/04/06/pc9cbx.jpg">
<meta property="og:image" content="https://riyugo.com/i/2021/04/06/pdinak.jpg">
<meta property="og:image" content="https://riyugo.com/i/2021/04/06/qs42p4.png">
<meta property="og:image" content="https://riyugo.com/i/2021/04/06/qrgke6.png">
<meta property="og:image" content="https://riyugo.com/i/2021/04/06/quw0r8.png">
<meta property="article:published_time" content="2021-04-05T11:24:17.000Z">
<meta property="article:modified_time" content="2021-04-06T09:43:06.935Z">
<meta property="article:author" content="江麟">
<meta property="article:tag" content="Hexo博客">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://riyugo.com/i/2021/04/06/p2c82n.png">

<link rel="canonical" href="https://dreamanone.gitee.io/2021/04/05/Hexo%E5%8D%9A%E5%AE%A2%E5%85%8D%E8%B4%B9%E6%90%AD%E5%BB%BA%E6%95%99%E7%A8%8B/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>Hexo博客免费搭建教程 | 江麟の个人博客</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">江麟の个人博客</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">纪录技术改变生活的日常</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签<span class="badge">2</span></a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类<span class="badge">4</span></a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档<span class="badge">7</span></a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://dreamanone.gitee.io/2021/04/05/Hexo%E5%8D%9A%E5%AE%A2%E5%85%8D%E8%B4%B9%E6%90%AD%E5%BB%BA%E6%95%99%E7%A8%8B/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/user.jpg">
      <meta itemprop="name" content="江麟">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="江麟の个人博客">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          Hexo博客免费搭建教程
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2021-04-05 19:24:17" itemprop="dateCreated datePublished" datetime="2021-04-05T19:24:17+08:00">2021-04-05</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2021-04-06 17:43:06" itemprop="dateModified" datetime="2021-04-06T17:43:06+08:00">2021-04-06</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Hexo%E5%8D%9A%E5%AE%A2%E8%BF%90%E7%BB%B4%E6%97%A5%E5%B8%B8/" itemprop="url" rel="index"><span itemprop="name">Hexo博客运维日常</span></a>
                </span>
            </span>

          <br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="far fa-file-word"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>1.5k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="far fa-clock"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>1 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><p>首先，参考本教程前，您需要安装如下软件并默认您拥有Gitee账号。</p>
<h2 id="软件地址"><a href="#软件地址" class="headerlink" title="软件地址"></a>软件地址</h2><p>1.<a target="_blank" rel="noopener" href="http://nodejs.cn/download/">Node.js</a></p>
<p>2.<a target="_blank" rel="noopener" href="https://git-scm.com/downloads">Git</a></p>
<p>3.<a target="_blank" rel="noopener" href="https://www.typora.io/">Typora</a></p>
<p>4.<a target="_blank" rel="noopener" href="https://notepad-plus.en.softonic.com/">Nodepad++</a></p>
<span id="more"></span>

<h2 id="检测是否安装成功"><a href="#检测是否安装成功" class="headerlink" title="检测是否安装成功"></a>检测是否安装成功</h2><p><strong>Win+R</strong>打开运行窗口，输入<strong>cmd</strong>命令进入cmd终端窗口。</p>
<p><strong>Node.js的检查</strong></p>
<figure class="highlight crmsh"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">node</span> <span class="title">-v</span></span><br></pre></td></tr></table></figure>

<p><strong>npm</strong> 的检查</p>
<blockquote>
<p>npm是随同Node.js一起安装的包管理工具，能解决Node.js代码部署上的很多问题</p>
</blockquote>
<figure class="highlight coffeescript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">npm</span> -v</span><br></pre></td></tr></table></figure>

<p><strong>Git</strong>的检查</p>
<figure class="highlight ada"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git <span class="comment">--version</span></span><br></pre></td></tr></table></figure>

<ul>
<li><input checked="" disabled="" type="checkbox"> 以上有显示版本号，则说明安装成功</li>
</ul>
<h1 id="Hexo的安装"><a href="#Hexo的安装" class="headerlink" title="Hexo的安装"></a>Hexo的安装</h1><ul>
<li><strong>Ps：以下皆在cmd窗口执行</strong></li>
</ul>
<p>1、安装之前可以先设置一下淘宝镜像加速器</p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install -g cnpm --registry=https:<span class="regexp">//</span>registry.npm.taobao.org</span><br></pre></td></tr></table></figure>

<p>2、全局安装框架</p>
<figure class="highlight avrasm"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-<span class="keyword">cli</span> -g</span><br></pre></td></tr></table></figure>

<p>3.1、创建你的博客目录</p>
<figure class="highlight csharp"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo <span class="keyword">init</span> 你博客的文件夹名字</span><br></pre></td></tr></table></figure>

<p>3.2、进入你博客的目录</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> 你博客的文件夹名字</span><br></pre></td></tr></table></figure>

<p>4、复制文件到你博客的目录</p>
<figure class="highlight cmake"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm <span class="keyword">install</span></span><br></pre></td></tr></table></figure>

<p>5、安装Hexo部署插件</p>
<p>请在你博客的目录下启动cmd，再执行以下代码</p>
<ul>
<li>启动方法：进入<strong>博客主目录</strong>，在文件夹路径那一行删除掉路径，输入<strong>cmd</strong>回车</li>
</ul>
<figure class="highlight ada"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-deployer-git <span class="comment">--save</span></span><br></pre></td></tr></table></figure>

<h1 id="Git仓库的创建"><a href="#Git仓库的创建" class="headerlink" title="Git仓库的创建"></a>Git仓库的创建</h1><p>1.登录Gitee账号，点击右上角加号，选择新建仓库。</p>
<p><img src="https://riyugo.com/i/2021/04/06/p2c82n.png" alt="新建仓库"></p>
<p>2.输入仓库名字后项目名字会自动输入，切记要和主页地址相同不然会有后缀名，如果不知道主页地址先随便输入一个看仓库地址即可。</p>
<p><img src="https://riyugo.com/i/2021/04/06/pc9cbx.jpg" alt="新建昂库"></p>
<p>3.选择初始化readme文件，点击新建</p>
<p><img src="https://riyugo.com/i/2021/04/06/pdinak.jpg" alt="新建仓库"></p>
<h1 id="Git的配置"><a href="#Git的配置" class="headerlink" title="Git的配置"></a>Git的配置</h1><ul>
<li><strong>Ps：以下皆在cmd窗口执行</strong></li>
<li><strong>如果您之前已经使用过git并且配置过，这步忽略</strong></li>
</ul>
<p>设置用户名称</p>
<figure class="highlight verilog"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git <span class="keyword">config</span> --<span class="keyword">global</span> user<span class="variable">.name</span> <span class="string">&quot;用户名&quot;</span></span><br></pre></td></tr></table></figure>

<p>设置用户邮箱</p>
<figure class="highlight verilog"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git <span class="keyword">config</span> --<span class="keyword">global</span> user<span class="variable">.email</span> <span class="string">&quot;用户邮箱&quot;</span></span><br></pre></td></tr></table></figure>

<h1 id="博客-config-yml-文件的配置"><a href="#博客-config-yml-文件的配置" class="headerlink" title="博客 _config.yml 文件的配置"></a>博客 _config.yml 文件的配置</h1><p>使用Nodepad++打开你<strong>博客根目录</strong>的 <strong>_config.yml</strong> 文件，下拉到文件结尾，将deploy分类下的信息修改为如下内容，如果没有，则将以下信息添加到里面去。</p>
<p><strong>Ps:打开创建的仓库，点克隆/下载，选择https，将链接复制下来即可得到仓库HTTP URL</strong></p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">deploy:</span><br><span class="line">  type: git</span><br><span class="line">  repo: https:<span class="regexp">//gi</span>tee.com<span class="regexp">/DreaManOne/</span>DreaManOne.git    <span class="comment">#替换成你自己仓库的HTTP URL地址</span></span><br><span class="line">  branch: master</span><br></pre></td></tr></table></figure>

<blockquote>
<p>注意区分，你博客根目录的 _config.yml 文件，和主题根目录的 _config.yml 文件！</p>
</blockquote>
<h1 id="本地预览Hexo博客"><a href="#本地预览Hexo博客" class="headerlink" title="本地预览Hexo博客"></a>本地预览Hexo博客</h1><ul>
<li><strong>Ps：请在你博客的目录下启动cmd，再执行以下代码</strong></li>
</ul>
<figure class="highlight sas"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo cl <span class="variable">&amp;&amp;</span> hexo g <span class="variable">&amp;&amp;</span> hexo s</span><br></pre></td></tr></table></figure>

<p>等待执行完毕。</p>
<p>浏览器输入地址:<strong>localhost:4000</strong>预览博客。</p>
<ul>
<li><input checked="" disabled="" type="checkbox"> 如果预览没问题后，在<strong>cmd</strong>界面按下<strong>Ctrl+c</strong>停止本地预览，准备上传到Gitee吧！</li>
</ul>
<h1 id="开始部署Hexo博客"><a href="#开始部署Hexo博客" class="headerlink" title="开始部署Hexo博客"></a>开始部署Hexo博客</h1><h2 id="上传博客到Gitee"><a href="#上传博客到Gitee" class="headerlink" title="上传博客到Gitee"></a>上传博客到Gitee</h2><ul>
<li><strong>Ps：请在你博客的目录下启动cmd，再执行以下代码</strong></li>
</ul>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo d</span></span><br></pre></td></tr></table></figure>

<p>等待上传完成。</p>
<p>打开Gitee刚才创建的仓库，看文件是否上传成功。</p>
<p><img src="https://riyugo.com/i/2021/04/06/qs42p4.png" alt="上传博客成功"></p>
<p>依次点击 <strong>服务</strong>-&gt;<strong>Gitee Pages</strong></p>
<p><img src="https://riyugo.com/i/2021/04/06/qrgke6.png" alt="Pages服务"></p>
<ul>
<li><input checked="" disabled="" type="checkbox"> 勾选强制使用HTTPS</li>
</ul>
<p>点击更新，就会出现你博客的域名网址。</p>
<p><img src="https://riyugo.com/i/2021/04/06/quw0r8.png"></p>
<h2 id="大工告成"><a href="#大工告成" class="headerlink" title="大工告成"></a>大工告成</h2><p>输入刚才得到的网址地址，打开后出现Hexo博客页面即大功告成！</p>
<p>后续将会更新Hexo博客美化的教程，请持续关注。</p>
<h1 id="Hexo常用命令"><a href="#Hexo常用命令" class="headerlink" title="Hexo常用命令"></a>Hexo常用命令</h1><p>Hexo清空缓存</p>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo cl</span></span><br></pre></td></tr></table></figure>

<p>Hexo编译</p>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo g</span></span><br></pre></td></tr></table></figure>

<p>Hexo启动本地服务（可在localhost:4000访问预览）</p>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo s</span></span><br></pre></td></tr></table></figure>

<p>Hexo上传到Gitee</p>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo d</span></span><br></pre></td></tr></table></figure>

<p>Hexo生成新的文章（存放在source/_posts里）</p>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo n</span></span><br></pre></td></tr></table></figure>


    </div>

    
    
    
        

<div>
<ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者： </strong>江麟
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="https://dreamanone.gitee.io/2021/04/05/Hexo%E5%8D%9A%E5%AE%A2%E5%85%8D%E8%B4%B9%E6%90%AD%E5%BB%BA%E6%95%99%E7%A8%8B/" title="Hexo博客免费搭建教程">https://dreamanone.gitee.io/2021/04/05/Hexo博客免费搭建教程/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="noopener" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>


      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/Hexo%E5%8D%9A%E5%AE%A2/" rel="tag"># Hexo博客</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2021/04/04/first-page/" rel="prev" title="Test">
      <i class="fa fa-chevron-left"></i> Test
    </a></div>
      <div class="post-nav-item">
    <a href="/2021/04/12/%E5%85%83%E4%BB%B6%E4%BB%8B%E7%BB%8D-%E7%94%B5%E9%98%BB/" rel="next" title="元件介绍-电阻">
      元件介绍-电阻 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#%E5%89%8D%E8%A8%80"><span class="nav-number">1.</span> <span class="nav-text">前言</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E8%BD%AF%E4%BB%B6%E5%9C%B0%E5%9D%80"><span class="nav-number">1.1.</span> <span class="nav-text">软件地址</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%A3%80%E6%B5%8B%E6%98%AF%E5%90%A6%E5%AE%89%E8%A3%85%E6%88%90%E5%8A%9F"><span class="nav-number">1.2.</span> <span class="nav-text">检测是否安装成功</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Hexo%E7%9A%84%E5%AE%89%E8%A3%85"><span class="nav-number">2.</span> <span class="nav-text">Hexo的安装</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Git%E4%BB%93%E5%BA%93%E7%9A%84%E5%88%9B%E5%BB%BA"><span class="nav-number">3.</span> <span class="nav-text">Git仓库的创建</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Git%E7%9A%84%E9%85%8D%E7%BD%AE"><span class="nav-number">4.</span> <span class="nav-text">Git的配置</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E5%8D%9A%E5%AE%A2-config-yml-%E6%96%87%E4%BB%B6%E7%9A%84%E9%85%8D%E7%BD%AE"><span class="nav-number">5.</span> <span class="nav-text">博客 _config.yml 文件的配置</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E6%9C%AC%E5%9C%B0%E9%A2%84%E8%A7%88Hexo%E5%8D%9A%E5%AE%A2"><span class="nav-number">6.</span> <span class="nav-text">本地预览Hexo博客</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E5%BC%80%E5%A7%8B%E9%83%A8%E7%BD%B2Hexo%E5%8D%9A%E5%AE%A2"><span class="nav-number">7.</span> <span class="nav-text">开始部署Hexo博客</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%B8%8A%E4%BC%A0%E5%8D%9A%E5%AE%A2%E5%88%B0Gitee"><span class="nav-number">7.1.</span> <span class="nav-text">上传博客到Gitee</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%A4%A7%E5%B7%A5%E5%91%8A%E6%88%90"><span class="nav-number">7.2.</span> <span class="nav-text">大工告成</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Hexo%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4"><span class="nav-number">8.</span> <span class="nav-text">Hexo常用命令</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="江麟"
      src="/images/user.jpg">
  <p class="site-author-name" itemprop="name">江麟</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">7</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">4</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">2</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://gitee.com/DreaManOne" title="Gitee → https:&#x2F;&#x2F;gitee.com&#x2F;DreaManOne" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>Gitee</a>
      </span>
  </div>
  <div class="cc-license motion-element" itemprop="license">
    <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" class="cc-opacity" rel="noopener" target="_blank"><img src="/images/cc-by-nc-sa.svg" alt="Creative Commons"></a>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">江麟</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-chart-area"></i>
    </span>
    <span title="站点总字数">19k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
    <span title="站点阅读时长">17 分钟</span>
</div>

        








      </div>
    </footer>
  </div>

  
  
  <script color='0,0,0' opacity='0.5' zIndex='-1' count='150' src="/lib/canvas-nest/canvas-nest.min.js"></script>
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
